package com.jake.microservice.consumer.fallback;

import com.jake.microservice.consumer.service.UserFeignService;
import org.springframework.stereotype.Component;

@Component
public class UserFeignServiceFallback implements UserFeignService {
    @Override
    public String getUsers() {
        return "Feign 获取不到所有用户";
    }

    @Override
    public String getUserById(Integer uid) {
        return "Feign 获取不到 ID 为" + uid + "的用户";
    }
}
